from django.urls import path, include
from rest_framework.routers import DefaultRouter
from weather.api import views


# Routers provide an easy way of automatically determining the URL conf.
router = DefaultRouter()
router.register(r'ctiy_number', views.CityNumberApiView)
router.register(r'weather_live', views.WeatherLiveApiView)
# router.register(r'weather_demo', views.WeatherReadOnlyApiView) 

# Wire up our API using automatic URL routing.
# Additionally, we include login URLs for the browsable API.
urlpatterns = [
    path('weather/', include(router.urls)),
    path('authToken/', views.CustomAuthToken.as_view(), name='authToken')
]